/* 
 * Author: Nhan Nguyen
 */
function RequestData(from, to, type, data) {
    this.from = from;
    this.to = to;
    this.type = type;
    this.data = data;
}

function RealtimeApps($socket) {
    this.socket = $socket;

}

RealtimeApps.prototype = {
    constructor: RealtimeApps,
    /**
     * Send the param to the server
     * @param {type} $param
     * @returns {undefined}
     * @note:   $param need to know which "type of app" to send first 
     *          then build the "appropriate data structure of data" to send 
     * 
     */
    doSend: function($param) {
        var type = $param.type;
        if (type) {
            switch (type) {
                case "chat":
                    {
                        //build the appropriate data structure for chat app before send back to server
                        var data = {
                            "message": message
                        }
                    }
            }
        }
    },
    chat: function() {
        console.log("Chat:", this.socket);
    },
    message: function() {

    },
    addWallStatus: function() {

    },
    addFriend: function() {

    },
    comment: function() {

    },
    like: function() {

    }

};






